import {Component} from "@angular/core";
import {HeaderComponent} from "./header.component";
import {BodyComponent} from "./body.component";
import {FooterComponent} from "./footer.component";
/**
 * Created by Administrator on 2016/8/2 0002.
 */
@Component({
    selector:'my-app',
    template:`
             <my-header>init header...</my-header>
             <br/>
             <my-body>init body...</my-body>
             <br/>
             <my-footer>init footer...</my-footer>
              `,
    directives:[HeaderComponent,BodyComponent,FooterComponent]
})
export class RootComponent{
    test():void {
        console.log("点击了按钮....")
    }
}
